package com.yuanhua.xcxmng.wechat.service;

import com.yuanhua.xcxmng.wechat.entity.User;
import com.yuanhua.xcxmng.wechat.entity.UserRun;
import com.yuanhua.xcxmng.wechat.entity.UserTarget;

import java.util.Date;
import java.util.List;

/**
 * @author Ted(lyc32995)
 * @version : id: MyService , v 0.1 2018/1/24 16:13 Ted(lyc32995) Exp $
 * @Description
 */
public interface MyService {

    void findAll();

    void saveRunData(String openId, Date gmtDate, Long step) throws Exception;

    UserRun findRunDataByOpenIdDate(String openId, Date date) throws Exception;

    List<UserRun> findRunDataByOpenIdDate(String openId, Date start, Date endDate) throws Exception;

    UserTarget findTargetByOpenId(String openId) throws Exception;

    void createTarget(UserTarget userTarget) throws Exception;

    void updateTarget(UserTarget userTarget) throws Exception;

    void createUser(User user) throws Exception;

    void updateUser(User user) throws Exception;

    void updateUserRun(UserRun userRun) throws Exception;

    User findUserByOpenId(String openId) throws Exception;

    List<User> orderByStep() throws Exception;

    List<User> orderByNo() throws Exception;
}